<?php

namespace common\entities\myhtsq;

use common\entities\ContractEntity;
use Yii;

/**
 * This is the model class for table "myscrm_buss_account_types".
 *
 * @property string $type_id
 * @property string $type_name
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class BussAccountTypesEntity extends ContractEntity
{

    const RENT_SERVICE = '7f94a49d-fcf6-11e4-bed8-00155d02c832';//租用
    const INCREMENT_SERVICE = '7f94a5d3-fcf6-11e4-bed8-00155d02c832';//一次性
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_buss_account_types';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type_id'], 'required'],
            [['created_on', 'modified_on'], 'safe'],
            [['type_id', 'created_by', 'modified_by'], 'string', 'max' => 36],
            [['type_name'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'type_id' => '类别ID',
            'type_name' => '类别名称',
            'created_on' => '创建时间',
            'created_by' => '创建人',
            'modified_on' => '修改时间',
            'modified_by' => '修改人',
        ];
    }

}
